import BaseUI from "../../Core/BaseUI";
const {ccclass, property} = cc._decorator;

@ccclass
export default class PopupUI extends BaseUI {
    onShow(data?: any): Promise<void> {
        throw new Error("Method not implemented.");
    }
    onHide(): Promise<void> {
        throw new Error("Method not implemented.");
    }
    @property(cc.Node)
    public closeNode:cc.Node = null;

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
       // var node:cc.Asset = this.node;
        console.log("popup onLoad")
    }

    start () {
        console.log("popup start")
    }

    onOpen(data?: any): void {
        console.log("popup onOpen",data)
    }
 
}
